import request from '@/utils/request'

// 查询评委列表
export function listJudge(query) {
  return request({
    url: '/eqxm/judge/list',
    method: 'get',
    params: query
  })
}

// 查询评委详细
export function getJudge(id) {
  return request({
    url: '/eqxm/judge/' + id,
    method: 'get'
  })
}

// 新增评委
export function addJudge(data) {
  return request({
    url: '/eqxm/judge',
    method: 'post',
    data: data
  })
}

// 修改评委
export function updateJudge(data) {
  return request({
    url: '/eqxm/judge',
    method: 'put',
    data: data
  })
}

// 删除评委
export function delJudge(id) {
  return request({
    url: '/eqxm/judge/' + id,
    method: 'delete'
  })
}

// 导出评委
export function exportJudge(query) {
  return request({
    url: '/eqxm/judge/export',
    method: 'get',
    params: query
  })
}